﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Comisiones.Models
{
    public class Tarifario
    {
        //Llaves primarias y foraneas
        [Key]public int tar_idTarifa { get; set; }
        public int? loc_idLocal { get; set; }
        public int? psv_idPtoServicio { get; set; }
        public int? com_idComercio { get; set; }

        //atributos

        //objetos correspondientes a las llaves foraneas
        [ForeignKey("loc_idLocal")]
        public Local local { get; set; }
        [ForeignKey("psv_idPtoServicio")]
        public PuntoServicio puntoServicio { get; set; }
        [ForeignKey("com_idComercio")]
        public Comercio comercio { get; set; }
    }
}